/**
 * 
 */
package com.ioc;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xied
 */
public class IocContains {
	
    @SuppressWarnings("unchecked")
	private static Map<Class, Object> map = new HashMap<Class, Object>();
    
    @SuppressWarnings("unchecked")
	protected static boolean isContain(Class key) {
    	return map.containsKey(key);
    }
    
    @SuppressWarnings("unchecked")
    protected static Object put(Class key,Object value) {
    	return map.put(key, value);
    }
    
    @SuppressWarnings("unchecked")
    protected static Object get(Class key) {
    	return map.get(key);
    }
}
